package cn.topcodes.tcsf.wechat.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import lombok.Data;
import javax.persistence.Table;
import java.util.Date;

/**
 * 微信用户
 * @author unicorn
 * @date 2017-08-15 17:19:02
 */
@Data
@Table(name="t_wechat_user")
public class WechatUser extends IdEntity {
	
	public static final String FIELD_OPEN_ID = "openId";

	public static final String FIELD_UNION_ID = "unionId";

	public static final String FIELD_SUBSCRIBE = "subscribe";

	public static final String FIELD_NICKNAME = "nickname";

	public static final String FIELD_GENDER = "gender";

	public static final String FIELD_CITY = "city";

	public static final String FIELD_COUNTRY = "country";

	public static final String FIELD_PROVINCE = "province";

	public static final String FIELD_LANGUAGE = "language";

	public static final String FIELD_HEAD_IMG_URL = "headImgUrl";

	public static final String FIELD_SUBSCRIBE_TIME = "subscribeTime";

	public static final String FIELD_REMARK = "remark";

	public static final String FIELD_GROUP_ID = "groupId";

	public static final String FIELD_TAGID_LIST = "tagidList";

	//	关注-已关注
	public static final String SUBSCRIBE_TRUE = "Subscribe";
	//	关注-未关注
	public static final String SUBSCRIBE_FALSE = "Unsubscribe";


	/**
	 * openId(即将废弃，迁移到branch表)
	 */
	private String openId;

	/**
	 * unionId
	 */
	private String unionId;

	/**
	 * 关注状态(即将废弃，迁移到branch表)
	 */
	private String subscribe;

	/**
	 * 昵称
	 */
	private String nickname;

	/**
	 * 性别
	 */
	private String gender;

	/**
	 * 	城市
	 */
	private String city;

	/**
	 * 国家
	 */
	private String country;

	/**
	 * 省份
	 */
	private String province;

	/**
	 * 语言
 	 */
	private String language;

	/**
	 * 头像
	 */
	private String headImgUrl;

	/**
	 * 关注时间(即将废弃，迁移到branch表)
	 */
	private Date subscribeTime;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 用户组
	 */
	private Integer groupId;

	/**
	 * 标签
	 */
	private String tagidList;

}